package com.njlime.cms.service.app;

import com.njlime.cms.entities.MaterialsNews;
import com.njlime.cms.repository.app.AppMaterialNewsDao;
import com.njlime.cms.repository.sys.MaterialNewsDao;
import com.njlime.cms.repository.sys.MaterialNewsGroupDao;
import com.njlime.core.helper.PageBean;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.Map;

/**
 * Created by Dean on 2017-7-27.
 */
@Service
@Transactional(readOnly = true)
public class AppMaterialNewsService {

    @Resource
   public AppMaterialNewsDao appMaterialNewsDao;


    /**
     * 详情
     * @param id
     * @return
     */
    public Map<String,Object> get(int id){
        return appMaterialNewsDao.get(id);
    }

}
